<?php

namespace addons\Calendar\common\enums;
use common\enums\BaseEnum;
/**
 * 枚举
 *
 * Class GenderEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class CalendarTypeEnum extends BaseEnum
{
    const PrivacyCalendar = 0;
    const PublicCalendar = 1;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::PrivacyCalendar => '私密日程',
            self::PublicCalendar => '公共日程',
        ];
    }

    public static function getValue($key): string
    {
        return static::getMap()[$key] ?? '';
    }
}